<!-- begin of popnup blog main block -->
<{* $Id: popnupblog_view.html,v 1.28 2003/12/06 06:39:23 Yoshi.Sakai Exp $ *}>
<script language="JavaScript">
<!-- Altanate Contents By Yoshi @ bluemooninc.biz
  function showhide(id){
    if(document.getElementById){
      if(document.getElementById(id).style.display == "none")
        document.getElementById(id).style.display = "block";
      else
        document.getElementById(id).style.display = "none";
    }
  }
-->
</script>
<{if $popnupblog_votable eq true}>
  <a href="<{$xoops_url}>/modules/popnupblog/index.php?param=<{$params}>&vote=1">
  <{$_MD_POPNUPBLOG_VOTERANKING}>
  </a>
<{/if}>
<{if $popnupblog_editable eq true}>
  <a href="<{$xoops_url}>/modules/popnupblog/edit.php?today=<{$popnupblog_targetBid}>">
    <{$_MI_POPNUPBLOG_WRITE}>
  </a>
<{/if}>
<{foreach from=$popnupblog_index item=year key=key}>
<div align="right"><{$key}>
	<{foreach from=$year item=month }> | <a href='<{$month.url}>'><{$month.month}></a><{/foreach}></div>
<{/foreach}>
<table class="outer" cellspacing="0">
<{if count($popnupblog_blogdata) gt 0 }>
  <tr class="outer"><th colspan="3">
    <a href="<{$xoops_url}>/modules/popnupblog/index.php?param=<{$popnupblog_targetBid}>">
      <font size="+1"><{$blog_title}></font>
    </a>
    &nbsp;<{$blog_desc}>
    </th>
    <!--<{if $popnupblog_editable eq true}>
		<a href="<{$xoops_url}>/modules/popnupblog/edit.php?param=<{$popnupblog_targetBid}>">
		[<{$_MD_POPNUPBLOG_LINK_EDIT}>]</a>
	<{/if}>-->
  </tr>
<!--<{counter start=0 skip=1}>-->
<{foreach item=i from=$popnupblog_blogdata}>
  <{if count($popnupblog_blogdata) eq 1 and $i.url|regex_replace:'/.*-/':''|count_characters eq 14}>
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <rdf:Description
     rdf:about="<{$i.url}>"
     dc:identifier="<{$i.url}>"
     dc:title="<{$i.title}>"
     trackback:ping="<{$i.url|replace:'index.php?param=':'trackback.php/'}>" />
    </rdf:RDF>
  <{/if}>
    <{if $i.hidedate!=true}>
    <tr valign="middle" ><td class="head" colspan="3">
	  <a href="<{$xoops_url}>/modules/popnupblog/index.php?param=<{$popnupblog_targetBid}>-<{$i.year}><{$i.month}><{$i.date}>">
      <font size="+1"><{$i.date_str}></font>
      </a>
    </td></tr>
  <{/if}>
  <tr>
  <!--<td class="even" width="1%" rowspan="3" valign="middle"><{counter}>.</td>-->
  <td class="even" ><a href="<{$i.url}>"><b><{$i.title}></b></a></td>
  <td class="even" align="right"><{$i.hours}>:<{$i.minutes}>&nbsp;&nbsp;<{$i.uname}>&nbsp;
  <{if $popnupblog_editable eq true}>
    <{if $popnupblog_editable eq true || $popnupblog_admin eq true }>
	<a href="<{$xoops_url}>/modules/popnupblog/edit.php?param=<{$popnupblog_targetBid}>-<{$i.year}><{$i.month}><{$i.date}><{$i.hours}><{$i.minutes}><{$i.seconds}>">[<{$_MD_POPNUPBLOG_LINK_EDIT}>]</a>
	<{/if}>
  <{/if}>
  </td></tr>
  <tr><td class="odd" colspan="2">
    <div class="comText">
      <{$i.text|replace:"\n":'<br />'|replace:"<img":"<div style='clear:both'></div><img hspace='5'"}>
    </div></td></tr>
  <tr>
  <{if $popnupblog_commentable eq true or $popnupblog_votable eq true}>
    <form action="<{$xoops_url}>/modules/popnupblog/comment.php" method="post">
    <input type="hidden" name="targetUid" value="<{$popnupblog_targetUid}>" />
  <{/if}>
  <td colspan="2">
  <!-- Comment Read Area -->
  <{if count($i.comments) gt 0 }>
      <HR>
      <table>
      <{foreach item=j from=$i.comments}>
	   <{if $j.comment ne '' or ($j.uid eq $popnupblog_uid)}>
		<tr><td>
        <div title="<{$j.create_date}>"><{$j.create_date_m}> <{$j.comment}>
        </td>
        <td align="right">
		<{if ($j.vote ne 0) }>
			<{if ($j.uid eq $popnupblog_uid) }>
				<{$_MD_POPNUPBLOG_FORM_VOTE}>:
				<{if $j.vote eq 1}><{$_MD_POPNUPBLOG_FORM_YES}><{/if}>
				<{if $j.vote eq -1}><{$_MD_POPNUPBLOG_FORM_NO}><{/if}>
			<{else}>
				<{$_MD_POPNUPBLOG_VOTED}>:
			<{/if}>
			&nbsp;
		<{/if}>
        <{$j.name}>&nbsp;
        <{if $j.comment_edit==true }>
          <a href="<{$xoops_url}>/modules/popnupblog/comment_edit.php?param=<{$j.id}>">[<{$_MD_POPNUPBLOG_LINK_EDIT}>]</a>
        <{/if}>
        </div>
        </td></tr>
		<{/if}>
      <{/foreach}>
      </table>
  <{/if}>
  <!-- Vote Parcentage Area -->
  <{if $i.votes_all gt 0 }>
      <table>
		<tr><td width="18%"><{$_MD_POPNUPBLOG_VOTEREASULT}>
		<{$i.votes_all}><{$_MD_POPNUPBLOG_VOTEALL}></td>
		<td width="8%" align="right"><{$_MD_POPNUPBLOG_FORM_YES}></td><td width="32%">
          <div style="background-color: #9999ff; border: 1px solid #777777; text-align: center; width: <{$i.votes_yes_pix}>px">
          (<{$i.votes_yes}>)&nbsp;<{$i.votes_yes_par}>%</div>
        </td><td width="8%" align="right"><{$_MD_POPNUPBLOG_FORM_NO}></td><td width="32%">
          <div style="background-color: #9999ff; border: 1px solid #777777; text-align: center; width: <{$i.votes_no_pix}>px">
          (<{$i.votes_no}>)&nbsp;<{$i.votes_no_par}>%</div>
        </td></tr>
      </table>
  <{/if}>
  <!-- Comment and Vote input Area -->
  <{if $popnupblog_commentable eq true}>
      <input type="hidden" name="param" value="<{$popnupblog_targetBid}>-<{$i.year}><{$i.month}><{$i.date}><{$i.hours}><{$i.minutes}><{$i.seconds}>" />
      <{$_MD_POPNUPBLOG_FORM_NAME}>:
      <{if $popnupblog_uname eq ""}>
          <input type="text" name="name" value="" size="10" />@<{$_MD_POPNUPBLOG_FORM_GUEST}>&nbsp
      <{else}>
	      <input type="hidden" name="name" value="<{$popnupblog_uname}>" />
          <{$popnupblog_uname}>
      <{/if}>
      <{$_MD_POPNUPBLOG_FORM_COMMENT}>:<input type="text" name="comment" size="40" />
  <{/if}>
  <{if $popnupblog_votable eq true}>
      <input type="hidden" name="param" value="<{$popnupblog_targetBid}>-<{$i.year}><{$i.month}><{$i.date}><{$i.hours}><{$i.minutes}><{$i.seconds}>" />
      <{$_MD_POPNUPBLOG_FORM_VOTE}>:
      <input type="radio" name="vote" value=1><{$_MD_POPNUPBLOG_FORM_YES}></input>
      <input type="radio" name="vote" value=-1><{$_MD_POPNUPBLOG_FORM_NO}></input>
  <{/if}>
  <{if $popnupblog_commentable eq true or $popnupblog_votable eq true}>
      <input type="submit" value="<{$_MD_POPNUPBLOG_FORM_SEND}>" />
      </form>
  <{/if}>
  <!-- TrackBack Area -->
  <{if count($i.trackbacks) gt 0 }>
	<br />
    <a href="JavaScript:showhide('<{$i.date}><{$i.hours}><{$i.minutes}><{$i.seconds}>')"><{$_MD_POPNUPBLOG_TRACKBACK}>
    	&nbsp;(<{$i.tb_count}>)</a>
	<div id="<{$i.date}><{$i.hours}><{$i.minutes}><{$i.seconds}>" style="display:none;">
	<hr />
	<{foreach item=tb from=$i.trackbacks}>
		<li><{$tb.count}><a href="<{$tb.url}>" target="_blank">
			<{if $tb.title }><{$tb.title}><{else}><{$tb.url}><{/if}></a>
	<{/foreach}>
	</div>
  <{/if}>
  <{if $i.trackback_url }>
    <div align="right">[<a href="<{$i.trackback_url}>">TrackBack</a>]</div>
  <{/if}>
  </td></tr>
<{/foreach}>
<{else}>
  <tr><td>no blog</td></tr>
<{/if}>
<tr class="foot"><td align="center" colspan="3">
  <{$jump_url}>
</td></tr><tr>
<td align="right" valign="bottom" colspan="3">PopnupBlog <{$POPNUPBLOG_VERSION}> created by 
<a href="http://www.bluemooninc.biz/" target="_blank">Bluemoon inc.</a> &nbsp; 
<a href="http://feeds.archive.org/validator/check?url=<{$popnupblog_user_rss}>" target="_blank">
<img src="<{$xoops_url}>/modules/popnupblog/rss-valid-line.gif" border="0"></a> 
<a href="<{$popnupblog_user_rss}>"><img src="<{$xoops_url}>/modules/popnupblog/rss10.gif" border="0" /></a>
</td></tr>
</table>
<{include file='db:system_notification_select.html'}>
<!-- end of popnup blog main block -->
